#include "QueryCallback.h"

bool QueryCallback::SparkIfReady()
{
    if (result_.wait_for(std::chrono::seconds(0)) == std::future_status::ready)
    {
        cb_(std::move(result_.get()));
        return true;
    }
    return false;
}
